package com.bean.annotation;

import com.bean.annotation.interfacts.UserDao;
import com.bean.annotation.interfacts.UserService;
import lombok.Setter;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
@Setter
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    public void save() {
        System.out.println("user service save");
        this.userDao.save();
    }
}
